﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="AllocationLookSaleman.aspx.cs" Inherits="Ewts.Project.AllocationLookSaleman" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<div class="tab2">
	<h1>添加地址</h1>
<table cellSpacing="0" cellPadding="0" border="0" class="two2">
                <tr>
	                    <td>
		                    区域名称 ：
                        </td>
	                    <td>
		                    <asp:TextBox id="txtareaName" CssClass="input" runat="server" Enabled="false"></asp:TextBox>
	                    </td>
                </tr>
                  <tr>
	                    <td>
		                    服务点 ：
                        </td>
	                    <td>
		                    <asp:TextBox id="txtserverpoint" CssClass="input" runat="server" Enabled="false"></asp:TextBox>
	                    </td>
                </tr>

                 <tr>
                 <td>
                    <input type="hidden" id="txtid" runat="server" />
                    <label><span class="required">*</span>地址：</label>
                  </td>
                  <td>
                      <asp:DropDownList ID="dropaddress" runat="server">
                      </asp:DropDownList>
                  </td>
                </tr>
                 <tr>
                     <td>
                      <asp:Button ID="Button1"
                          runat="server" Text="添加" onclick="Button1_Click"/></td>
                </tr>
<div class="shadow">
    <asp:Repeater ID="rept" runat="server" OnItemCommand="BtnDel_Click">
      <HeaderTemplate>

    <table id="tab" class="display" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
 
      <thead>
 
        <tr>
            <th>序号</th>
             <th>区域名称</th>
             <th>服务点</th>
             <th>地址</th>
             <th>操作</th>
 
        </tr>
 
      </thead>
 
      <tbody>
 
  </HeaderTemplate>
 
  <ItemTemplate>
 
    <tr style=" text-align:center;">
      <td><%# Container.ItemIndex +1 %></td>
      <td><%# Eval("AreaName") %></td>
      <td><%# Eval("ServerPointName").ToString().Replace('@',' ') %></td>
      <td><%# Eval("AddresssName") %></td>
      <td><a href="AllocationLookSaleman.aspx?cityid=<%# Eval("ServerPointID")%>&ServerAreaID=<%#Eval("ServerAreaID") %>&addressid=<%#Eval("id") %>">编辑地址</a>&nbsp <asp:LinkButton
              ID="LinkBtnDel" OnClientClick="return confirm('确定要删除吗?')" CommandName='<%# Eval("id") %>' runat="server">删除地址</asp:LinkButton></td>
    </tr>
 
  </ItemTemplate>
 
  <FooterTemplate>
 
    </tbody>
 
    </table>
 
  </FooterTemplate>


    </asp:Repeater>
</div>
</table>

    </div>
      <script type="text/javascript">
          $(document).ready(function () {
              $('#tab').dataTable({ "oLanguage":
                 { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
                  "bJQueryUI": true,
                  "sPaginationType": "full_numbers",
                  'bPaginate': true,
                  "bProcessing": true,
                  "iDisplayLength": 20,
                  "bSort": true,
                  "aaSorting": [[0, "desc"]]
              });

          });
 
</script>
</asp:Content>
